import styles from './index.module.less'
import classNames from 'classnames'

interface Props {
    color: 'main' | 'warn' | 'error' | 'success' | 'gray' | 'blue'
    name: string
}

export const Tag = (props: Props) => {
    return <div className={classNames(styles.tag, styles[`tag_${props.color}`])}>{props.name}</div>
}

export default Tag
